
#import "KarmaShopRequest.h"

@implementation KarmaShopRequest

//
// event type
//
@synthesize eventType														= _eventType;

//
// count
//
@synthesize count															= _count;

//
// setup request
//
- (void)setupRequest
{
	//
	// setup rel path
	//
	self.relPath															= @"mpshop.php";
	
	//
	// call super
	//
	[super setupRequest];
	
	//
	// setup post data
	//
	NSString* postFormat													= @"event=%d&amount=%d";
	NSString* postString													= [NSString stringWithFormat:postFormat, self.eventType, self.count];
	char const* postString8													= [postString UTF8String];
	self.postData															= [NSData dataWithBytes:postString8 length:strlen(postString8)];
}

@end
